<script>
	import {mapState,mapActions} from 'vuex'
	export default {
		computed: {
		    ...mapState(['hasLogin','token']),
		},
		onLaunch: function() {
			console.log('App Launch')
			//加载token到store
			this.init();
		},
		onShow: function() {
			console.log('App Show')
		},
		onLoad:function() {
			console.log('App Load')
		},
		onHide: function() {
			console.log('App Hide')
		},
		methods:{
			...mapActions(['init','logout']),
		}
	}
</script>

<style>
	/*每个页面公共css */
	@import url("/static/font/iconfont.wxss");
	@import url("/pages/index/bj.scss");
</style>
